/*Man H. Vu
 *CS 362 SE II
 *Testing kingdomCards()
 */

#include "dominion.h"
#include "dominion_helpers.h"
#include "rngs.h"
#include <stdio.h>


int main(){
	int in1[10] = {0,1,2,3,4,5,6,7,8,9};
	int in2[10] = {5,11,12,3,1,4,17,1,1,2};
	int *output1;
	int *output2;
	output1 = kingdomCards(in1[0],in1[1],in1[2],in1[3],in1[4],in1[5],in1[6],in1[7],in1[8],in1[9]);
	output2 = kingdomCards(in2[0],in2[1],in2[2],in2[3],in2[4],in2[5],in2[6],in2[7],in2[8],in2[9]);

	int i;
	printf("Input 1: {0,1,2,3,4,5,6,7,8,9} \n");
	printf("Input 2: {5,11,12,3,1,4,17,1,1,2} \n");
	for (i=0;i<10;i++){
		if (in1[i]!=output1[i]){
			printf("Input 1 element %d : FAIL \n", in1[i]);
		}else{
			printf("Input 1 element %d : PASS \n", in1[i]);
		}
	}
	for(i=0;i<10;i++){
		if (in2[i]!=output2[i]){
			printf("Input 2 element %d : FAIL", in2[i]);
		}else{
			printf("Input 2 element %d : PASS \n", in2[i]);
		}
	}
	printf("Test completed.\n");
	return 0;
}
